package com.atgm.mall.gmmailcoupon.feign;

import com.atgm.common.utils.R;
import com.atgm.mall.gmmailcoupon.feign.fallback.PeriFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "gm-mall-perimall", fallback = PeriFeignFallbackService.class, qualifier = "periFeignService")
public interface PeriFeignService {

    @GetMapping("/gmmallperimall/perigoods/infos")
    R getPeriGoodsInfoByIds(@RequestParam("ids") List<Long> ids);

}
